//
//  HHScoreSuggestion.m
//  FCHealthy
//
//  Created by mouxiaochun on 16/3/12.
//  Copyright © 2016年 mmc. All rights reserved.
//

#import "HHScoreSuggestion.h"

@implementation NSArray (suggestion)

- (NSString *)suggestion:(NSInteger)value {
    
    for (HHScoreSuggestion *s in self) {
        if (value >= s.minVal && value <= s.maxVal ) {
            return s.suggestionText;
        }
    }
    return nil;
}

@end


@implementation HHScoreSuggestion
- (void)dealloc {
    self.suggestionText = nil;
}


@end
